/**
 * 创建日期:2017/11/17 10:14
 * 创建作者:ewjx
 * 修改日期:2017/11/17 10:14
 * 备注信息:路由
 */
import {HomeComponent} from './page/home.component'
import {ForumComponent} from './page/forum.component';
import {Article} from './page/article.component.js';

export class Router {
    constructor() {
        this.home = new HomeComponent();
        this.forum = new ForumComponent();
        this.article = new Article();
    }
    // 主页
    '#/home'() {
        this.home.getElement();
        this.home.toEvent();
    }

    // 论坛页面
    '#/forum'() {
        this.forum.getElement();
        this.forum.toEvent();
    }

    // 文章页面
    '#/article'() {
        this.article.getElement();
        this.article.toEvent();
    }
}